class UrlMappings {

	static mappings = {
		
		"/rest/person/$id?"(resource:"person")
		"/rest/persons"(controller:"person"){
			action = [GET:"list"]
		}
		
		"/$controller/$action?/$id?"{
			constraints {
				// apply constraints here
			}
		}

		"/"(view:"/index")
		"500"(view:'/error')
	}
}
